﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PSE.Deployment.SetupBase.Parameter
{
    [Serializable]
    public class UsedBy
    {
        [XmlAttribute()]
        public string Id { get; set; }

        [XmlAttribute()]
        public string ActionType { get; set; }

        public UsedBy()
        {

        }

        public UsedBy(string id, string actionType)
        {
            this.Id = id;
            this.ActionType = actionType;
        }

        public bool Equals(string id)
        {
            return this.Id == id;
        }

        public override int GetHashCode()
        {
            return this.Id.GetHashCode();
        }
    }
}
